home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4895 < prev    next >
Encoding:
Text File  |  1996-08-06  |  732 b   |  31 lines

  1. Path: newsstand.cit.cornell.edu!ub!newserve!rebecca!rpi!usenet
  2. From: coarrm@rpi.edu (Matt Coarr)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Beginner: How to #include
  5. Date: Thu, 01 Feb 1996 05:51:28 GMT
  6. Organization: Rensselaer Polytechnic Institute
  7. Message-ID: <4epkme$7r8@usenet.rpi.edu>
  8. References: <4eo99c$lnc@news1.usa.pipeline.com>
  9. Reply-To: coarrm@rpi.edu
  10. NNTP-Posting-Host: coarrm.stu.rpi.edu
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. grantp@usa.pipeline.com(Pete) wrote:
  14.  
  15. >#if !defined(_MY_DATA_H_) 
  16. >#define _MY_DATA_H 
  17. >#endif  // last line in your .h file to match the first #if !defined 
  18.  
  19. Another way to write this is (possibly better):
  20.  
  21. #ifndef _MY_DATA_H
  22. #define _MY_DATA_H
  23.  
  24. ...
  25. #endif
  26.  
  27.                     Matt Coarr
  28.                     coarrm@rpi.edu
  29.  
  30.  
  31.